export interface LoginParams {
	username: string;
	password: string;
}

export interface RegisterParams extends LoginParams {
	email: string;
}

export interface ForgotPasswordParams {
	email: string;
}

export interface UserInfo {
	id: string;
	username: string;
	email: string;
	avatar: string;
	role: string;
	createTime: string;
	lastLoginTime: string;
}

export interface LoginResult {
	token: string;
	userInfo: UserInfo;
}

export interface PageParams {
	page: number;
	pageSize: number;
}

export interface PageResult<T> {
	total: number;
	list: T[];
}
